<!DOCTYPE html>
<html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue Template</title>
</head>
<body>
    <div id="app">
        <ul>
            <!-- 循环数组 -->
            <li v-for='(item,index) in names'>
                {{index}}·{{item}}
            </li>
        </ul>
        <!-- 循环对象 -->
        <p v-for="(value,key,index) in person">
            {{index}}.{{key}}--{{value}}
        </p>
    </div>
<script src="../js/vue.js"></script>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            names: ['zs','ls','ww','vl'],
            person:{
                name:'kebi',
                age: 40,
                gender: '男'
            }
        }
    })
</script>
</body>
</html>